<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<html>
<body>
<script type="text/javascript">
<%
   String timeout =	request.getParameter("timeout") ;   
   if("true".equalsIgnoreCase(timeout)){
   %>
   		alert('会话已过期,请重新登录!') ;		
   <%
   }
   String userError = request.getParameter("userError") ;   
   if(userError != null && !userError.equals("")){
   %>
   		alert('用户名或密码错误!') ;		
   <%
   }
   String error = request.getParameter("error") ;   
   if(error != null && !error.equals("")){
   %>
   		alert('发生异常如下:\n错误代码:<%=error %>\n请与系统管理员联系!') ;		
   <%
   }
   String message= (String)session.getAttribute("message");
   if(message != null && message.length() > 1){
	%>
	   	alert('<%=message %>');		
	<%
	}
   	String login="login.jsp";
   %>  
   top.document.location="<%= request.getContextPath()%>/<%=login%>";
</script>
</body>
</html>